/**
 * 映射器配置
 */
export interface MapperConfig {
    name: string;
    rule?: any;
}

/**
 * 判断 value 是否为 MapperConfig 类型
 * @param value 待判断的值
 * @returns value 是否为 MapperConfig 类型
 */
export function isMapperConfig(value: any): value is MapperConfig {
    return typeof value === "object" && value !== null && "name" in value && typeof value.name === "string";
}
